package com.ruoyi.plus.pub.api.po.pubNotice;

import com.ruoyi.plus.constants.PlusDictConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 系统公告通知对象 pub_notice_plus
 *
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel()
public class PubNoticePlusQueryPo implements Serializable {
    /**
     * 页码
     */
    @ApiModelProperty(value = "页码(默认1)", example = "1")
    private int pageNum = 1;

    /**
     * 每页条数
     */
    @ApiModelProperty(value = "每页条数(默认10)", example = "10")
    private int pageSize = 10;

    /**
     * 标题
     */
    @ApiModelProperty("标题")
    private String title;

    /**
     * 类型 1 通知, 2 公告
     */
    @ApiModelProperty(value = "类型 1 通知, 2 公告",required = true)
    @NotBlank
    private String type;

    /**
     * 状态 1 未发布, 2 已发布, 3 已撤销
     */
    @ApiModelProperty(name = "状态 1 未发布, 2 已发布, 3 已撤销")
    private String status;

    @ApiModelProperty(value = "用户id, 获取通知时此参数必传", required = true)
    private Long userId;

    @ApiModelProperty(value = PlusDictConstants.SYSTEM_TYPE_ALL,required = true)
    @NotBlank
    private String systemType;

}
